import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: ()=>import('../views/HomeView.vue'),
      props: true 
    },
    {
      path:'/:pathMatch(.*)*',
      name: 'pathMatch',
      component: ()=>import('../views/PathMatch.vue'),
      
    },
    {
      path:'/weather',
      name: 'weather',
      component: ()=>import('../views/WeatherView.vue'),
      props: true 
    },
   


  ],
})

export default router
